public class Test {
    public static void drawMap(TestInterface testInterface){
        testInterface.draw();
    }
    public static void main(String[] args) {
        TestInterface testInterface1=new Rect();
        TestInterface testInterface2=new Flower();//发生向上转型
        drawMap(testInterface1);
        drawMap(testInterface2);
        TestInterface.fun1();
    }
}
